package com.briup.mybatis02code.entity.ex;

import com.briup.mybatis02code.entity.Category;
import lombok.Data;

import java.util.List;

@Data
public class CategoryExtend extends Category {
    private List<Category> categories;

    @Override
    public String toString() {
        return "CategoryExtend{ id= " + super.getId() + " ,name = " + super.getName() +
                " ,description = " + super.getDescription() + " ,parentId = " + super.getParentId() +
                " ,categories=" + categories +
                '}';
    }
}
